<?php

declare(strict_types=1);

namespace App\Controller;

use Hyperf\HttpServer\Annotation\AutoController;
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Contract\ResponseInterface;

/**
 * @AutoController()
 * Class TransController
 * @package App\Controller
 */
class TransController
{
    /**
     * @GetMapping()
     * @param RequestInterface $request
     * @param ResponseInterface $response
     * @author github_sw <github_sw@yeah.net>
     */
    public function index(RequestInterface $request, ResponseInterface $response)
    {
        echo trans('messages.welcome');
    }
}
